<template>
  <div :style="`height:${height};width:${width};`" class="data-con-box">
    <div class="data-con-title">{{ title }}</div>
    <div class="data-con-no-title">
      <slot name="notitlebox"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    width: {
      type: String,
      default: "",
    },
    height: {
      type: String,
      default: "100%",
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss">
.data-con-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.data-con-title {
  width: 100%;
  height: 40px;
  // line-height: 40px;
  text-align: center;
  color: #4fd9dc;
  font-size: 20px;
  border-bottom: 3px solid #016569;
}
.data-con-no-title {
  width: 100%;
  height: calc(100% - 50px);
  overflow-y: auto;
}
</style>
